package com.esteel.settlement.config.pa;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 异步线程池配置
 * 
 * @author zhangxiuzhi
 *
 */
@Component
@ConfigurationProperties(prefix="settlement.executor")
public class ExecutorProperties {

	private int corePoolSize=5;
	
	private int maximumPoolSize=20;
	
	private long keepAliveTime=200;

	public int getCorePoolSize() {
		return corePoolSize;
	}

	public void setCorePoolSize(int corePoolSize) {
		this.corePoolSize = corePoolSize;
	}

	public int getMaximumPoolSize() {
		return maximumPoolSize;
	}

	public void setMaximumPoolSize(int maximumPoolSize) {
		this.maximumPoolSize = maximumPoolSize;
	}

	public long getKeepAliveTime() {
		return keepAliveTime;
	}

	public void setKeepAliveTime(long keepAliveTime) {
		this.keepAliveTime = keepAliveTime;
	}
	
	
}
